package com.sevntu.apvs.dModel;

import org.xml.sax.SAXException;

/**
 * Class provides DModel exceptions.
 * 
 * @author <a href="mailto:rd.ryly@gmail.com">Ruslan Diachenko</a>
 */
public class DModelException extends SAXException {

	// Added serialVersionUID to preserve binary compatibility
	private static final long serialVersionUID = 5054552582215055803L;

	/** Exception name */
	private String name;

	/**
	 * Class constructor which initializes exception name.
	 * 
	 * @param name
	 *            Exception name.
	 */
	public DModelException(String name) {
		this.name = name;
	}

	/* 
	 * @see java.lang.Throwable#toString()
	 */
	@Override
	public String toString() {
		return "DModelException: " + name;
	}
}
